#ifndef GAMEWINDOW2_H
#define GAMEWINDOW2_H

#include <QObject>
#include<QProgressBar>
#include <QMovie>
#include <QWidget>
#include <QApplication>
#include <QWidget>
#include <QLabel>
#include <QPixmap>
#include <QPropertyAnimation>
#include <QMouseEvent>
#include <QSoundEffect>
#include <QTimer>

class GameWindow2:public QLabel {
    Q_OBJECT
public:
    explicit GameWindow2(QWidget *parent = nullptr);
     void closeEvent(QCloseEvent *event) override;

protected:
    void mousePressEvent(QMouseEvent *event) override;

private:
    int angerValue = 100;
    QTimer *angerTimer;
    QSoundEffect *pokeSound;
    QLabel *puppy;
    QProgressBar* angerbar;
    QMovie *currentMovie = nullptr;


    void updateExpression();
signals:
    void gameWindow2Closed();

};




#endif // GAMEWINDOW2_H
